﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<#assign active='expressList'/>
<body>
<#include "../include/common-top.ftl"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "../include/common-menu.ftl"/>
        <div class="main-content">
            <div class="page-content">
                <div class="col-xs-12">
                    <div class="row-fluid">
                        <div class="widget-box">
                            <div class="widget-header widget-header-blue widget-header-flat">
                                <h4 class="lighter">
                                    <i class="icon-leaf"></i><#if express.status == 1>修改</#if>快递信息
                                </h4>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <div class="step-content row-fluid position-relative">
                                        <form class="form-horizontal"
                                              <#if express.status == 1>action="/express/update"</#if> method="post">
                                        <#if express.status == 1><input type="hidden" value="${express.id}"
                                                                        name="id"></#if>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">快递编号</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="no"
                                                           value="${express.no!}" required/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">发货人</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="senduser"
                                                           value="${express.senduser!}" required/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">发货人联系方式</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="sendphone"
                                                           value="${express.sendphone!}" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">发货人地址</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="sendaddress"
                                                           value="${express.sendaddress!}" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">收货人</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="receiveuser"
                                                           value="${express.receiveuser!}" required/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">收货人联系方式</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="receivephone"
                                                           value="${express.receivephone!}" required/>
                                                </div>
                                            </div>


                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">收货地址</label>
                                                <div class="col-xs-12 col-sm-6">
                                                    <select class="col-xs-3" name="province"
                                                            style="margin-right: 19px"></select>
                                                    <select class="col-xs-3" name="city"
                                                            style="margin-right: 19px"></select>
                                                    <select class="col-xs-3" name="area"
                                                            style="margin-right: 19px"></select>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">收货人详细地址</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="receiveaddress"
                                                           value="${express.receiveaddress!}" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">运输方式</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <select class="width-100" name="trantype">
                                                        <option value="0" <#if express.trantype == 0>selected</#if>>陆运
                                                        </option>
                                                        <option value="1" <#if express.trantype == 1>selected</#if>>空运
                                                        </option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">付款方式</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <select class="width-100" name="paytype">
                                                        <option value="0" <#if express.paytype == 0>selected</#if>>已付
                                                        </option>
                                                        <option value="1" <#if express.paytype == 1>selected</#if>>到付
                                                        </option>
                                                    </select>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">快递类型</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <select class="width-100" name="type">
                                                        <option value="small"
                                                                <#if express.type == 'small'>selected</#if>>小件
                                                        </option>
                                                        <option value="middle"
                                                                <#if express.type == 'middle'>selected</#if>>中等件
                                                        </option>
                                                        <option value="big" <#if express.type == 'big'>selected</#if>>
                                                            大件
                                                        </option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">快递费</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100 double" name="price"
                                                           value="${express.price?string('#0.00')}" required/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">备注</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <textarea class="autosize-transition form-control"
                                                              name="remark">${express.remark!}</textarea>
                                                </div>
                                            </div>

                                            <hr/>
                                        <#if express.status == 1>
                                            <div class="row-fluid wizard-actions">
                                                <button class="btn" type="reset">重置</button>
                                                <button class="btn btn-success" type="submit">提交</button>
                                            </div>
                                        </#if>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.page-content -->
        </div>
        <!-- /.main-content -->
    </div>
    <!-- /.main-container -->
</body>
<#include "../include/resource-script.ftl"/>
<script type="text/javascript">
    new PCAS("province", "city", "area", "${express.province!}", "${express.city!}", "${express.area!}");
<#if express.status != 1>
$("input").attr("disabled","disabled");
$("textarea").attr("disabled","disabled");
$("select").attr("disabled","disabled");
</#if>
</script>
</html>

